import request from '@/utils/request'
import qs from 'qs'

export function doRegister(username,password,email) {
    let data={
        username,
        password,
        email
    }
    data = qs.stringify(data)
    console.log("data = " + data);
    return request({
        url:'user/regist',
        method: 'post',
        data
    })
}